package com.ego.product.po;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.ego.product.vo.AttrGroupRelationVo;
import lombok.Data;

/**
 * @program: ego
 * @description 属性&属性分组关联
 * @author KamTang
 * @date 2022-11-13 12:56:14
 */
@Data
@TableName("pms_attr_group_relation")
public class AttrGroupRelation implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * 属性id
	 */
	private Long attrId;
	/**
	 * 属性分组id
	 */
	private Long attrGroupId;
	/**
	 * 属性组内排序
	 */
	private Integer attrSort;

	public static AttrGroupRelation fromVo(AttrGroupRelationVo vo) {
		System.out.println("执行了static fromVo方法");
		return BeanUtil.copyProperties(vo, AttrGroupRelation.class);
	}

}
